<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="org.limp.mine.annex.AnnexInfo"%>
<jsp:include page="../head.jsp"></jsp:include>
<%
   String context = jt.classic.system.ISystem.getContextPath();
   
   AnnexInfo img = (AnnexInfo)request.getAttribute("img");
%>
<script>
<%if(img != null){%>  
   parent.document.getElementById("txtUrl").value = serverPath + context + "/<%=img.getLinkString()%>"; 
   parent.UpdatePreview();
   //window.close();
<%}else{%>
   alert("插入图片失败,请重新选择图片");
   //window.history.back();
<%}%>
</script>